﻿using System;
using UnityEditor;
using UnityEngine;

namespace XMLib.AM
{
    public class StateGroupSetView : IView
    {
        public override string title => "状态组设置";
        public override void OnUpdate()
        {
            
        }
        public override bool useAre => true;

        private Vector2 scrollView = Vector2.zero;


        protected override void OnGUI(Rect contentRect)
        {
            object obj = win.currentStateGroup;
            if (null == obj)
            {
                return;
            }
            scrollView = EditorGUILayout.BeginScrollView(scrollView);
            if(win.currentStateGroup!=null)
            {
                GUILayout.Label("StateGroupID:" + win.currentStateGroup.GID);
            }
            //根据action的类型绘制页面
            win.currentStateGroup.GroupName = EditorGUILayoutEx.DrawObject("组名称", win.currentStateGroup.GroupName);
            EditorGUILayout.EndScrollView();
        }
    }
}
